package com.gpay.erp.services.common.impl;

import com.gpay.erp.core.dao.BaseDao;
import com.gpay.erp.core.system.bean.NoteType;
import com.gpay.erp.core.system.bean.PayType;
import com.gpay.erp.core.system.bean.WareHouse;
import com.gpay.erp.services.common.PaytypeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by wuzonghui on 15/11/12.
 */
@Service
public class PaytypeServiceImpl implements PaytypeService {
    @Resource
    private BaseDao dao;

    @Override
    public List<PayType> selectListPayType() {
        return dao.selectList("payType.selectList");
    }

    @Override
    public List<NoteType> selectListByFid(String f_paytypeId) {
        return dao.selectList("payType.selectByFid",f_paytypeId);
    }

    /**
     * 查询仓库列表
     * @return
     */
    @Override
    public List<WareHouse> selectListWarehouse() {
        return dao.selectList("payType.selectListWarehouse");
    }

}
